package Year2021.month10.Day21.Day30homework;

public class Sonar {
    /*
    扫描；
     */
    public void scanning(Fish fish,Submarine submarine){
        System.out.println("声呐可以扫描水里"+fish.swimming()+"和"+submarine.swimming());
    }

}
